package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.VVorderMapper;
import com.ruoyi.system.domain.VVorder;
import com.ruoyi.system.service.IVVorderService;
import com.ruoyi.common.core.text.Convert;

/**
 * VIEWService业务层处理
 * 
 * @author colin
 * @date 2021-09-17
 */
@Service
public class VVorderServiceImpl implements IVVorderService 
{
    @Autowired
    private VVorderMapper vVorderMapper;

    /**
     * 查询VIEW
     * 
     * @param id VIEW主键
     * @return VIEW
     */
    @Override
    public VVorder selectVVorderById(Long id)
    {
        return vVorderMapper.selectVVorderById(id);
    }

    /**
     * 查询VIEW列表
     * 
     * @param vVorder VIEW
     * @return VIEW
     */
    @Override
    public List<VVorder> selectVVorderList(VVorder vVorder)
    {
        return vVorderMapper.selectVVorderList(vVorder);
    }

    /**
     * 新增VIEW
     * 
     * @param vVorder VIEW
     * @return 结果
     */
    @Override
    public int insertVVorder(VVorder vVorder)
    {
        return vVorderMapper.insertVVorder(vVorder);
    }

    /**
     * 修改VIEW
     * 
     * @param vVorder VIEW
     * @return 结果
     */
    @Override
    public int updateVVorder(VVorder vVorder)
    {
        return vVorderMapper.updateVVorder(vVorder);
    }

    /**
     * 批量删除VIEW
     * 
     * @param ids 需要删除的VIEW主键
     * @return 结果
     */
    @Override
    public int deleteVVorderByIds(String ids)
    {
        return vVorderMapper.deleteVVorderByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除VIEW信息
     * 
     * @param id VIEW主键
     * @return 结果
     */
    @Override
    public int deleteVVorderById(Long id)
    {
        return vVorderMapper.deleteVVorderById(id);
    }
}
